//
//  JWTHomeShowViewController.m
//  JWT
//
//  Created by Apple on 2017/1/1.
//  Copyright © 2017年 com.jwtsoft. All rights reserved.
//

#import "JWTHomeShowViewController.h"
#import "JWTHomeView.h"


@interface JWTHomeShowViewController ()

@property (nonatomic,strong) UIScrollView *scrollView;

@property (nonatomic,strong) JWTHomeView *homeView;

@end

@implementation JWTHomeShowViewController

-(instancetype)init{
    self = [super init];
    if (self) {
        self.title = @"金舞团";
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self layoutView];
}

-(void) layoutView{
    if (_scrollView == nil) {
        UIScrollView *scrollView = [[UIScrollView alloc] init];
        scrollView.frame = CGRectMake(self.view.left, self.view.top, UISCREEN_WIDTH, UISCREEN_HEIGHT-getNAVI_TOP_HEIGHT()-getTABBar_bottom_HEIGHT());
        scrollView.scrollEnabled = YES;
        [self.view addSubview:scrollView];
        _scrollView = scrollView;
        
        _homeView = [[JWTHomeView alloc] init];
        [self.view addSubview:_homeView];
        _scrollView.contentSize = CGSizeMake(_homeView.width, _homeView.height);
    }
}




- (void)viewWillAppear:(BOOL)animated{
    [[self rdv_tabBarController] setTabBarHidden:NO animated:YES];
    self.navigationImageView.hidden = YES;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
